package animal;

import org.omg.CORBA.PUBLIC_MEMBER;

public class Bird extends Animal{

    public Bird(String name) {
       super(name);
    }

    public void eat(String food){
        System.out.println("我是一只爱飞的小鸟");
        System.out.println(name+"正在吃"+food);
    }
    //这个方法是bird类独有的
    public void fly(){
        System.out.println("此方法是Bird类中独有的");
    }
}
